systemd: use pkg-config to determine systemd library availability
authorWei Liu <wei.liu2@citrix.com>
Tue, 2 Dec 2014 15:11:30 +0000 (15:11 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 4 Dec 2014 12:17:14 +0000 (12:17 +0000)
commite6c3d371d475a10d2ebe9351472a2ec261023d72
tree0d9e7501679fc68945153599361b404920a626f7
parentf688aec47c452d6aef382739d0781735672ef995
systemd: use pkg-config to determine systemd library availability

AC_CHECK_LIB fails on Debian Jessie since the ld flag it generates is
incorrect, even in the event systemd library is available.  Use
PKG_CHECK_MODULES instead.

Tested on Debian Jessie and Arch Linux.

Reported-by: Mark Pryor <tlviewer@yahoo.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Cc: Mark Pryor <tlviewer@yahoo.com>
[ ijc -- reran autogen.sh as requested ]
m4/systemd.m4
tools/configure